import http from "../utils/http";

// 生成预支付订单号
let getPreOrderNum = (data)=>http(`/api/front/order/pre/order`,data,'post');
// 根据订单号获取订单详情
let getOrderInfo = (preOrderNo)=>http(`/api/front/order/load/pre/${preOrderNo}`);
// 创建支付订单号
let createOrderNum = (data)=>http(`/api/front/order/create`,data,'post');
// 根据支付订单号拉起支付
let payMent = (data)=>http(`/api/front/pay/payment`,data,'post')
export {
    getPreOrderNum,
    getOrderInfo,
    createOrderNum,
    payMent
}